﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <!-- Showing Infos -->
    <div class="column2">
        <div class="article cms_clear" style="margin-left: 10px; margin-right: 5px;">
            <!-- Begin chi tiet bat dong san-->
            <table width="100%" border="0" cellpadding="2" cellspacing="2">
				<tr>
					<td style="padding-left:5px;"><img src="../../Content/Images/Home/bul5.gif" />&nbsp;&nbsp;
                        <strong><%= Model.NhaDatModel.GetModel.LstObjModel[0].TieuDe %></strong>
                    </td>
				</tr>
                <tr>
                    <td align="left" valign="top">
                        <table id="Table_01" width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="314" align="left" valign="top">
                                    <table width="100%" cellpadding="0" cellspacing="0" align="left">
                                        <tr>
                                            <td class="table_pic_house" align="left" valign="middle">
                                                <div style="display: block;" id="img1">
				                                    <div id="gallery" >
                                                        <ul>
                                                            <li>
                                                                <div style="width:270px; height:250; padding-left: 30px; padding-top: 10px; padding-bottom: 10px;">
		                                                            <img src="../../Content/Images/Items/<%= Model.NhaDatModel.GetModel.LstObjModel[0].HinhMinhHoa %>" width="270" height="250" align="left" border="0"/> 
	                                                            </div>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </div>
                                                    <div id="img3" style="width: 250px; height: 270px; display: none;">
                                                    <div id="ComboExample"></div>
                                                    </div>
                                            </td>
                                        </tr>
                                        <tr><td></td></tr>
                                    </table>
                                </td>
                                <td width="259" align="left" style="padding-left:5px; padding-top: 5px;">
                                    <table width="240" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td background="../../Content/Images/Home/nen_detail_house.gif" height="20">Ngày đăng tin : 22/03/11 </td>
										</tr>
                                        <tr>
                                            <% var mabds = Model.NhaDatModel.GetModel.LstObjModel[0].LoaiBatDongSan.TenLoaiBatDongSan.Contains(WebConfiguration.DatNen) == true ? "DNL" : "CHL"; %>
											<td background="../../Content/Images/Home/nen_detail_house.gif" height="20">Mã BĐS : <%= mabds %><%= Model.NhaDatModel.GetModel.LstObjModel[0].ID %></td>
										</tr>
                                        <tr>
											<td align="center" valign="top" background="">
                                                <br/>
                                                <% var loaigia = Model.NhaDatModel.GetModel.LstObjModel[0].LoaiGia.TenLoaiGia.ToUpper().Contains("m<sup>2</sup>") == true ? "/m<sup>2</sup>" : ""; %>
                                                <span id="price0" class="text_red"><%= String.Format("{0:#,##0;Nothing}", Model.NhaDatModel.GetModel.LstObjModel[0].Gia)%><%= loaigia %> <span class='ngay'></span></span>
					                            <BR />(Còn thương lượng)
					                            <br /><br />
                                            </td>
										</tr>
                                        <tr>
											<td background="../../Content/Images/Home/nen_detail_house.gif" height="20">Nơi đăng : <%= Model.NhaDatModel.GetModel.LstObjModel[0].QuanHuyen.TinhThanh.TenTinhThanh %> - <%= Model.NhaDatModel.GetModel.LstObjModel[0].QuanHuyen.TenQuanHuyen %></td>
										</tr>
                                        <tr>
											<td background="../../Content/Images/Home/nen_detail_house.gif" height="20">Loại tin rao : Cần bán</td>
										</tr>
                                        <tr>
											<td background="../../Content/Images/Home/nen_detail_house.gif" height="20">Loại địa ốc : <%= Model.NhaDatModel.GetModel.LstObjModel[0].LoaiBatDongSan.TenLoaiBatDongSan %></td>
										</tr>
                                        <tr>
											<td background="../../Content/Images/Home/nen_detail_house.gif" height="20">Số người xem : <span class="text_red"><%= Model.NhaDatModel.GetModel.LstObjModel[0].SoLanXem %></span></td>
										</tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="padding-top: 10px;">
                        <table width="100%" border="0" cellpadding="2" cellspacing="2">
                            <tr>
                                <td colspan="2" style="padding-left:5px;">
                                            
                                </td>
                            </tr>
                            <tr>
								<td colspan="2" bgcolor="#EBF4FB" height="24" style="padding-left:5px;"><span class="title">Thông tin</span></td>
							</tr>
                            <tr>
								<td colspan="2">Địa chỉ : <span class="text_red"><%= Model.NhaDatModel.GetModel.LstObjModel[0].DiaChi %> </span></td>
							</tr>
							<tr>
                                <% var sodo = Model.NhaDatModel.GetModel.LstObjModel[0].CoSoHong == true ? "Sổ hồng" : "_"; %> 
								<td colspan="2">Hiện đang có : <%= sodo%></td>
							</tr>
							<tr>
                                <% var sotang = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.SoTang != "" ? Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.SoTang : "_"; %>
								<td>Số tầng : <%= sotang %></td>
                                <% var ngang = Model.NhaDatModel.GetModel.LstObjModel[0].DienTichNgang > 0 ? Model.NhaDatModel.GetModel.LstObjModel[0].DienTichNgang.ToString() : "_";
                                   var doc = Model.NhaDatModel.GetModel.LstObjModel[0].DienTichDoc > 0 ? Model.NhaDatModel.GetModel.LstObjModel[0].DienTichDoc.ToString() : "_"; %>
								<td>Diện tích khuôn viên :  <%= ngang %>m x <%= doc %>m</td>
							</tr>
							<tr>
                                <% var huong = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.Huong != "" ? Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.Huong : "_"; %>
								<td>Hướng : <%= huong %></td>
                                <% var nohau = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.NoHau == true ? "Có" : "_"; %>
								<td>Nở hậu : <%= nohau %></td>
							</tr>
                            <tr>
                                <% var sophongngu = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.SoPhongNgu != "" ? Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.SoPhongNgu : "_"; %>
								<td>Số phòng ngủ : <%= sophongngu %></td>
                                <% var sophongtam = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.SoPhongTam != "" ? Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.SoPhongTam : "_"; %>
								<td>WC/ Phòng tắm: <%= sophongtam %></td>
							</tr>
							<tr>
                                <% var dtxd = Model.NhaDatModel.GetModel.LstObjModel[0].DienTichXayDung > 0 ? Model.NhaDatModel.GetModel.LstObjModel[0].DienTichXayDung.ToString() + " " : "_"; %>
								<td>Diện tích xây dựng : <%= dtxd %>m<sup>2</sup></td>
                                <% var mattien = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.MatTien == true ? "Có" : "_"; %>
								<td>Đường trước nhà : <%= mattien %></td>
							</tr>
							<tr>
								<% var dtsd = Model.NhaDatModel.GetModel.LstObjModel[0].DienTichSuDung > 0 ? Model.NhaDatModel.GetModel.LstObjModel[0].DienTichSuDung.ToString() + " " : "_"; %>
                                <td>Diện tích sử dụng : <%= dtsd %>m<sup>2</sup></td> 
								<td>Loại nội thất : <%= Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.LoaiNoiThat %></td>
							</tr>
							<tr>
                                <% var namxd = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.NamXayDung != "" ? Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.NamXayDung : "_"; %>
								<td>Năm xây dựng : <%= namxd %></td>
                                <% var namsc = Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.NamSuaChua != "" ? Model.NhaDatModel.GetModel.LstObjModel[0].ThongTinCanHoLe.NamSuaChua : "_"; %>
								<td>Năm sửa chữa : <%= namsc %></td>
							</tr>
                        </table>
                    </td>
                </tr>
                <tr>
					<td>
						<table width="100%" border="0" cellpadding="2" cellspacing="2">
							<tr>
								<td bgcolor="#EBF4FB" height="24" style="padding-left:5px;"><span class="title">Thông tin mô tả</span></td>
							</tr>
							<tr>
								<td style="padding-left:5px; text-align:justify"><%= Model.NhaDatModel.GetModel.LstObjModel[0].NoiDungRutGon %> </td>
							</tr>
						</table>
					</td>
                </tr>
                <tr>
					<td>
						<table width="100%" border="0" cellpadding="2" cellspacing="2">
							<tr>
								<td colspan="3" bgcolor="#EBF4FB" height="24" style="padding-left:5px;"><span class="title">Tiện ích</span></td>
							</tr>
							<tr>
								<td><%= Html.CheckBox("DongHoDien", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIch.DongHoDien.ToString()))%>&nbsp;Đồng hồ điện</td>
								<td><%= Html.CheckBox("MayPhatDien", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIch.MayPhatDien.ToString()))%>&nbsp;Máy phát điện</td>
								<td><%= Html.CheckBox("GiengDong", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIch.GiengDong.ToString()))%>&nbsp;Giếng đóng</td>
							</tr>
							<tr>
								<td><%= Html.CheckBox("DongHoNuoc", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIch.DongHoNuoc.ToString()))%>&nbsp;Đồng hồ nước</td>
								<td><%= Html.CheckBox("MayBomNuoc", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIch.MayBomNuoc.ToString()))%>&nbsp;Máy bơm nước</td>
								<td></td>
							</tr>
						</table>
					</td>
                </tr>
                <tr>
					<td>
						<table width="100%" border="0" cellpadding="2" cellspacing="2">
							<tr>
							    <td colspan="3" bgcolor="#EBF4FB" height="24" style="padding-left:5px;"><span class="title">Tiện ích khác</span></td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("GaraOto", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.GaraOto.ToString()))%>&nbsp;Gara ô tô</td>
							    <td><%= Html.CheckBox("SanVuon", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.SanVuon.ToString()))%>&nbsp;Sân vườn</td>
                                <td><%= Html.CheckBox("DienThoai", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.DienThoai.ToString()))%>&nbsp;Điện thoại</td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("MayLanh", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.MayLanh.ToString()))%>&nbsp;Máy lạnh</td>
							    <td><%= Html.CheckBox("MayNuocNong", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.MayNuocNong.ToString()))%>&nbsp;Máy nước nóng</td>
							    <td><%= Html.CheckBox("ChoDauXeHoi", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.ChoDauXeHoi.ToString()))%>&nbsp;Chỗ đậu xe hơi</td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("TruyenHinhCap", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.TruyenHinhCap.ToString()))%>&nbsp;Truyền hình cáp</td>
							    <td><%= Html.CheckBox("Internet", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.Internet.ToString()))%>&nbsp;Internet</td>
							    <td><%= Html.CheckBox("HoBoi", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].TienIchKhac.HoBoi.ToString()))%>&nbsp;Hồ bơi</td>
							</tr>
						</table>
					</td>
				</tr>
                <tr>
					<td>
						<table width="100%" border="0" cellpadding="2" cellspacing="2">
							<tr>
							    <td colspan="3" bgcolor="#EBF4FB" height="24" style="padding-left:5px;">
                                    <span class="title">Văn hoá - Xã hội</span>
                                </td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("GanTruongCap1", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTruongCap1.ToString()))%>&nbsp;Gần trường cấp I</td>
							    <td><%= Html.CheckBox("GanTruongCap2", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTruongCap2.ToString()))%>&nbsp;Gần trường cấp II</td>
							    <td><%= Html.CheckBox("GanTruongCap3", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTruongCap3.ToString()))%>&nbsp;Gần trường cấp III</td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("GanTruongMauGiao", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTruongMauGiao.ToString()))%>&nbsp;Gần trường mẫu giáo</td>
							    <td><%= Html.CheckBox("GanTruongDHCD", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTruongDHCD.ToString()))%>&nbsp;Gần trường ĐH-CĐ</td>
							    <td><%= Html.CheckBox("GanTrungTamThuongMai", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTrungTamThuongMai.ToString()))%>&nbsp;Gần trung tâm thương mại</td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("KhuDanTriCao", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.KhuDanTriCao.ToString()))%>&nbsp;Khu dân trí cao</td>
							    <td><%= Html.CheckBox("GanCho", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanCho.ToString()))%>&nbsp;Gần chợ</td>
							    <td><%= Html.CheckBox("GanCongVien", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanCongVien.ToString()))%>&nbsp;Gần công viên</td>
							</tr>
							<tr>
							    <td><%= Html.CheckBox("GanBenhVien", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanBenhVien.ToString()))%>&nbsp;Gần bệnh viện</td>
							    <td><%= Html.CheckBox("GanTrungTamGiaiTri", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.GanTrungTamGiaiTri.ToString()))%>&nbsp;Gần trung tâm giải trí</td>
							    <td><%= Html.CheckBox("TienKinhDoanh", bool.Parse(Model.NhaDatModel.GetModel.LstObjModel[0].VanHoaXaHoi.TienKinhDoanh.ToString()))%>&nbsp;Tiện kinh doanh</td>
							</tr>
						</table>
					</td>
				</tr>
                <tr>
					<td>
						<table width="100%" bgcolor="#F5FBFF" border="0" cellpadding="2" cellspacing="2">
							<tr>
							    <td colspan="4" height="24" style="padding-left:5px;" class="text_red">Thông tin liên hệ</td>
							</tr>
							<tr>
							    <td><strong>Công ty / Cá nhân:</strong></td>
							    <td><%= Model.NhaDatModel.GetModel.LstObjModel[0].aspnet_User.NguoiDung.HoTen %></td>
							    <td><strong>Điện thoại:</strong></td>
							    <td><%= Model.NhaDatModel.GetModel.LstObjModel[0].aspnet_User.NguoiDung.DienThoai %> - <%= Model.NhaDatModel.GetModel.LstObjModel[0].aspnet_User.NguoiDung.DiDong %></td>
							</tr>
							<tr>
							    <td><strong>Địa chỉ :</strong></td>
							    <td><%= Model.NhaDatModel.GetModel.LstObjModel[0].aspnet_User.NguoiDung.DiaChi %> </td>
							    <td><strong>Email :</strong></td>
							    <td><%= Membership.GetUser(Model.NhaDatModel.GetModel.LstObjModel[0].aspnet_User.UserName).Email %></td>
							</tr>
						</table>
					</td>
				</tr>
            </table>
        </div>
    </div>
</asp:Content>
